package com.ruoyi.system.domain;

import java.util.List;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 单元管理对象 sys_build_unit
 * 
 * @author ruoyi
 * @date 2021-01-28
 */
public class SysBuildUnit extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 单元id */
    private Long id;

    /** 单元标识 */
    @Excel(name = "单元标识")
    private String unitsn;

    /** 楼层Id */
    @Excel(name = "楼层Id")
    private Long buildid;

    /** 房间管理信息 */
    private List<SysBuildHouse> sysBuildHouseList;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUnitsn(String unitsn) 
    {
        this.unitsn = unitsn;
    }

    public String getUnitsn() 
    {
        return unitsn;
    }
    public void setBuildid(Long buildid) 
    {
        this.buildid = buildid;
    }

    public Long getBuildid() 
    {
        return buildid;
    }

    public List<SysBuildHouse> getSysBuildHouseList()
    {
        return sysBuildHouseList;
    }

    public void setSysBuildHouseList(List<SysBuildHouse> sysBuildHouseList)
    {
        this.sysBuildHouseList = sysBuildHouseList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("unitsn", getUnitsn())
            .append("buildid", getBuildid())
            .append("sysBuildHouseList", getSysBuildHouseList())
            .toString();
    }
}
